package colopl.http.service.bean;

import java.io.Serializable;

public class ColoplResult<V> implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -19250177249173714L;
    
    private boolean isSuccessful = false;
    
    private V object = null;
    
    private Exception exception = null;
    
    
    
    public boolean isSuccessful() {
        return isSuccessful;
    }

    public void setSuccessful(boolean isSuccessful) {
        this.isSuccessful = isSuccessful;
    }

    public V getObject() {
        return object;
    }

    public void setObject(V object) {
        this.object = object;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    @Override
    public String toString() {
        return "Result [isSuccessful=" + isSuccessful + ", object=" + object
                + ", exception=" + exception + "]";
    }

}
